package cn.com.test;

import java.lang.reflect.InvocationTargetException;

public class Main {

	public static void main(String[] args) throws NoSuchMethodException, InvocationTargetException,
			IllegalAccessException {
		Generic generic = new Generic();
		generic.getClass().getMethod("getName", String.class).invoke(generic, "jack");
	}
}
